package com.zs.toolbox.web2j.system.message.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author shuai.zhang  on 2018/9/25
 * @description
 */
@ApiModel("发送验证码接口参数")
@Data
public class WxSendSmsVcodeRequest {


    @ApiModelProperty(value = "接受手机号",required = true,example = "15652750943")
    @Pattern(regexp = "[0-9]{11}", message = "手机号格式不合法")
    @NotBlank
    String phone;

    @ApiModelProperty(value = "验证码",required = true,example = "123456")
    @NotBlank
    String vcode;

    @ApiModelProperty(value = "是否同步发送", required = false,example = "false")
    Boolean isSync = false;

}
